#ifndef DISTANCE_DEFS

#define DISTANCE_DEFS

#include "geometry.h"
#include "polygon.h"

//#ifdef __cplusplus
//extern "C" {
//#endif

void getSweeplineTan(Pt *tanPt);
void getExitPoint(Pt *start, Pt *end, Pt *exitPt);
void outerCommonTangent(Pgon *startPgon, Pgon *finishPgon, Pt *start, Pt *end, 
		int *startIndex, int *finishIndex);
void pointDistance(Pt *point1, Pt *point2, Real *dist);
void squarePointDistance(Pt *point1, Pt *point2, Real *dist);
void vectorLength(Pt *point, Real *length);

//#ifdef __cplusplus
//}
//#endif

#endif